<?php
require_once('simpletest/autorun.php');
require_once('simpletest/unit_tester.php');
/*
class RemoteConnect
{
  public function connectToServer($serverName)
  {
    if($serverName==null){
      throw new Exception("That's not a server name!");
   }
   $fp = fsockopen($serverName,80);
    return ($fp) ? true : false;
  }
 public function returnSampleObject()
  {
    return $this;
  }
}
*/
class ResultTest extends UnitTestCase {
  public function setUp(){ 

  }
  public function tearDown(){ }
  public function testResult()
  {
    // test to ensure that the object from an fsockopen is valid
   $my_result_ciry='深圳市';
   $result['city']='广州市'；
   $this->assertEqual($result['city'],$my_result_ciry);
  }
}
/*
class Test2 extends UnitTestCase {
  public function setUp(){ 

  }
  public function tearDown(){ }
  public function testConnectionIsValid()
  {
    // test to ensure that the object from an fsockopen is valid
    $connObj = new RemoteConnect();
    //$serverName = 'www.qq.com';
	$serverName='www.youtube.com';
    $this->assertTrue($connObj->connectToServer($serverName) !== false );
  }
}*/

?>